package  
{
	import flash.display.*;
	import iso.*;
	
	/**
	 * 地板贴图测试
	 * @author StefanieKaka
	 */
	public final class TileTest extends Sprite 
	{
		/// 构造函数
		public function TileTest() 
		{
			this.stage.align = StageAlign.TOP_LEFT;
			this.stage.scaleMode = StageScaleMode.NO_SCALE;
			
			var world : Sprite = new Sprite();
			world.x = stage.stageWidth / 2;
			world.y = 100;
			this.addChild(world);
			
			for (var i : int = 0; i < 20; ++i)
			{
				for (var j : int = 0; j < 20; ++j)
				{
					var tile : DrawnIsoTile = new DrawnIsoTile(20, 0xcccccc);
					tile.position = new Point3D(i* 20, 0, j * 20);
					world.addChild(tile);
				}
			}
		}
		
	}

}